Garmin: fix crash when reading routes.
authorrobertl <robertl>
Sun, 2 Nov 2008 19:45:37 +0000 (19:45 +0000)
committerrobertl <robertl>
Sun, 2 Nov 2008 19:45:37 +0000 (19:45 +0000)
Skyforce: doc tweaks.

garmin.c
xmldoc/formats/skyforce.xml

index 0fe9efc8cc0d9fa2541adb7a978de8073b20095a..c62e465e24890d6a1c30b43163e2eb706904f9ec 100644 (file)
--- a/garmin.c
+++ b/garmin.c
@@ -509,7 +509,7 @@ route_read(void)
                        if (array[i]->islink)  {
                                continue; 
                        } else {
-                               waypoint *wpt_tmp = xcalloc(sizeof (*wpt_tmp), 1);
+                               waypoint *wpt_tmp = waypt_new();
                                wpt_tmp->latitude = array[i]->lat;
                                wpt_tmp->longitude = array[i]->lon;
                                wpt_tmp->shortname = array[i]->ident;
index c3a91a9270e9b651bc14a014d4705da445cc83d4..461ca41e0df40c30f5e628bfa5accdc684043d12 100644 (file)
@@ -1,11 +1,12 @@
 <para>
    This format provides support for ascii files from Skyforce PC interface for 
-   Skymap IIIC, Skymap II (Version 4) and KMD 150. Based on their interface description our module
-   was developed.
+   Skymap IIIC, Skymap II (Version 4) and KMD 150. Our module was developed 
+   from their interface description.
 </para>
 <para>
-   Each kind of our basic GPS data (waypoints, routes or tracks) is stored in a seperate file. Thatswhy you
-   need three steps to convert a complex format as GPX or GDB into skyforce.
+   Each kind of our basic GPS data (waypoints, routes, and tracks) is 
+   stored in a seperate file. Therefore you need three steps to 
+   convert a complex format like GPX or GDB into skyforce.
    <userinput>
       gpsbabel -i gpx -f file.gpx -o skyforce -w -F waypoints.txt -r -F routes.txt -t -F tracks.txt
    </userinput>